package ikelib;

public class unsigned_byte {
	unsigned_byte(){
	}
	/**
	 * byte(signed) を unsigned とみなしてshort(0-255)に変換して返す
	 * @param c
	 * @return
	 */
	public static short convShort(byte c){
		if(c>=0) return (short)c;
		return (short)(0x100+c);
	}
}
